package edu.lnu.ums.entities;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class AdministrativeUnit extends Unit {

    private static final long serialVersionUID = 1L;
    
    @ManyToOne(cascade = {CascadeType.PERSIST})
    @JoinColumn
    private Worker secretary;


    public Worker getSecretary() {
        return secretary;
    }

    public void setSecretary(Worker secretary) {
        this.secretary = secretary;
    }
}
